package day02.work02;

public class Salesman extends Employee{
    private int salary;
    private int commission;

    public Salesman(){}
    public Salesman(String name,String sex,String birthday,int salary,int commission){
        super(name,sex,birthday);
        this.salary=salary;
        this.commission=commission;
    }
    public int getSalary() {
        return salary;
    }
    public void setSalary(int salary) {
        this.salary = salary;
    }
    public int getCommission() {
        return commission;
    }
    public void setCommission(int commission) {
        this.commission = commission;
    }

    public void computeSalary(){
        int k=salary+commission;
        System.out.println(super.getName()+"销售经理的工资："+k);
    }
}
